import request from '@/utils/request'

// 查询销售服务区域列表
export function listSalesUserServerZone(query) {
  return request({
    url: '/vanger/salesUserServerZone/list',
    method: 'get',
    params: query
  })
}

// 查询销售服务区域列表（联合）
export function listUnion(query) {
  return request({
    url: '/vanger/salesUserServerZone/listUnion',
    method: 'get',
    params: query
  })
}


// 查询销售服务区域详细（联合）
export function getInfoUnion(id) {
  return request({
    url: '/vanger/salesUserServerZone/getInfoUnion/' + id,
    method: 'get'
  })
}

// 查询销售服务区域详细
export function getSalesUserServerZone(id) {
  return request({
    url: '/vanger/salesUserServerZone/' + id,
    method: 'get'
  })
}

// 新增销售服务区域
export function addSalesUserServerZone(data) {
  return request({
    url: '/vanger/salesUserServerZone',
    method: 'post',
    data: data
  })
}

// 修改销售服务区域
export function updateSalesUserServerZone(data) {
  return request({
    url: '/vanger/salesUserServerZone',
    method: 'put',
    data: data
  })
}

// 删除销售服务区域
export function delSalesUserServerZone(id) {
  return request({
    url: '/vanger/salesUserServerZone/' + id,
    method: 'delete'
  })
}
